/********************************************************************************
 * Project Name		[JavaSE_Fundamentals]
 * File Name     	[InnerClass3.java]
 * Creation Date 	[2015-01-01]
 * 
 * Copyright© ge.y.yang@gmail.com All Rights Reserved
 * 
 * Work hard, play harder, think big and keep fit
 ********************************************************************************/
package objectOriented;

/**
 * 局部内部类<br/>
 * 
 * @author 不落的太阳(Sean Yang aka ShortPeace)
 * @version 1.0
 * @since jdk 1.8
 * 
 */
public class InnerClass3 {

	private String name = "Sean";

	public void method(final int i) {
		/**
		 * 局部内部类
		 * 
		 * @author 不落的太阳(Sean Yang aka ShortPeace)
		 * @version 1.0
		 * @since jdk 1.8
		 *
		 */
		class LocalInnerClass {
			public void method() {
				System.out.println(name);
				System.out.println(i);
			}
		}

		LocalInnerClass localInnerClass = new LocalInnerClass();
		localInnerClass.method();
	}

	public static void main(String[] args) {
		new InnerClass3().method(10);
	}
}
